package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.FormAuthMapper;
import cn.uniqueinfo.dp.service.IFormAuthService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.FormAuthVO;
import cn.uniqueinfo.dp.vo.RoleVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-30 10:21:51
 * @description: 业务表单数据权限
 */
@Service
public class FormAuthServiceImpl extends BaseServiceImpl<FormAuthVO> implements IFormAuthService {
    private FormAuthMapper mapper;

    public FormAuthServiceImpl(FormAuthMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<FormAuthVO> findByFormName(String formName) {
        return this.mapper.findByFormName(formName);
    }

    @Override
    public List<FormAuthVO> findAuth(String formName, List<RoleVO> list) {
        return this.mapper.findAuth(formName, list);
    }
}
